<html>
<head>
  <meta charset="utf-8">
  <title>Mocha Tests</title>
  <link href="../../node_modules/mocha/mocha.css" rel="stylesheet" />
</head>
<body>
  <div id="mocha"></div>
  <script src="../../node_modules/mocha/mocha.js"></script>
  <script src="../../dist/GitHub.bundle.min.js"></script>

  <script>mocha.setup('bdd')</script>
  <script>
     describe('the dist file', function() {
        it('should work', function(done) {
           var github = new GitHub();
           var gist = github.getGist('e265df71e7532f3a4bdd');
           gist.read()
              .then(function(http) {
                 console.log(http.data);
                 done();
              });
        });
     });
  </script>
  <script>
    mocha.checkLeaks();
    mocha.run();
  </script>
</body>
</html>
